#!/bin/sh
set -x
SCRIPT=$1
RELEASE_DIR=$2

######################
USER=$(awk '{print $4}' $HOME/.netrc)
PASSWD=$(awk '{print $6}' $HOME/.netrc)

for f in $RELEASE_DIR/*; do 
	sf=$(basename $f)	
	python $SCRIPT -s "$sf" -p 'myrpm' -u $USER -w $PASSWD -l 'Featured,Type-Package,OpSys-Linux' $f
done
echo "done"